/*
 * @Author: NaturalHulk 2066634567@qq.com
 * @Date: 2024-10-08 09:31:44
 * @LastEditors: NaturalHulk 2066634567@qq.com
 * @LastEditTime: 2024-10-11 09:40:41
 * @FilePath: /xhs-mom-new/src/api/system/printConfig.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询参数列表
export function GetListAPI(params) {
  return request({
    url: '/system/printConfig/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/system/printConfig/',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/system/printConfig/edit',
    method: 'PUT',
    data
  })
}

// 删除
export function DelDataAPI(data) {
  return request({
    url: '/system/printConfig/' + data,
    method: 'DELETE'
  })
}

// 查看详情
export function GetDailtAPI(data) {
  return request({
    url: '/system/printConfig/' + data,
    method: 'GET'
  })
}

// 查看配置
export function GetConfigAPI(data) {
  return request({
    url: '/system/printConfig/config/' + data,
    method: 'GET'
  })
}
// 配置保存
export function configContentAPI(data) {
  return request({
    url: '/system/printConfig/configContent',
    method: 'POST',
    data
  })
}

// 下拉到页面数据
export function GetMenuPageAPI() {
  return request({
    url: '/system/menu/menuPage',
    method: 'GET'
  })
}

// 查询打印字段
export function GetDetailsAPI(data) {
  return request({
    url: '/system/printConfig/details/' + data,
    method: 'GET'
  })
}

// 配置字段
export function ConfigFieidAPI(data) {
  return request({
    url: '/system/printConfig/dictionary',
    method: 'POST',
    data
  })
}
